package com.github.limit.annotation;


import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import java.util.concurrent.TimeUnit;

@Target({ElementType.METHOD,ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Limit
public @interface IpAccessLimit {

    TimeUnit timeUnit() default TimeUnit.SECONDS;

    // -1表示不限制
    long limit() default -1;

    int order() default 0;
}
